package org.chiansale.test;

import java.awt.Font;
import java.util.ArrayList;
import java.util.List;

import prefuse.util.FontLib;
import prefuse.util.io.IOLib;
import sun.awt.Win32GraphicsEnvironment;

public class MicTester {
	
	public static void main(String[] args) {
		System.out.println(Integer.MAX_VALUE);
		
		
		System.out.println(IOLib.urlFromString("/socialnet.xml"));
		System.out.println(IOLib.urlFromString("/xml_graph_template.xml"));
		System.out.println(IOLib.urlFromString("/info.properties"));
		
		int x = 33333333;
		Integer x2 = new Integer(x);
		System.out.println(x);
		System.out.println(x2.toString());
		
		List<String> xx = new ArrayList<String>();
		xx.add("a");xx.add("b");xx.add("c");xx.add("d");
		
//		for (String x1 : xx) {
//			System.out.println(x1);
//			xx.remove(x1);
//			System.out.println(xx);
//		}
		
		for (int i=0; i<xx.size();) {
			System.out.println(xx.get(i));
			xx.remove(i);
			System.out.println(xx + ", " + xx.isEmpty());
		}
		
		System.out.println(7 / 3);
		System.out.println(7 % 3);
		Font[] fs = new Win32GraphicsEnvironment().getAllFonts();
		for (Font f : fs) {
			System.out.println(f.getFontName() + "" + f.getFamily());
		}
		
//		Win32GraphicsEnvironment.
		String fn = "YaHei Consolas HybridYaHei Consolas Hybrid";
		System.out.println(Font.getFont(fn));
		System.out.println(Font.decode(fn));
		
		System.out.println(FontLib.getFont("YaHei Consolas HybridYaHei Consolas Hybrid", Font.PLAIN, 14));
		
		Font f = Font.decode(fn);
		
		System.out.println(f.getFamily() + " , " + f.getName() + " , " + f.getFontName());
		
	}
	
}
